All Questions
2 questions
2votes
1answer
2kviews
wp_add_inline_script not adding when script_loader_tag filtered
I'm trying to add the new GA4 code to an existing site, and there seems to be some conflict / ordering issue between script_loader_tag filters and wp_add_inline_script. My functions.php looks thusly: ....
0votes
1answer
62views
How to get, in WP page's script, a wp enqueued script (in Functions.php)?
I’m very new to WP, and to JS as well, and need to do a simple change to existing code, so forgive my ignorance… For getting the current User Id I followed examples and added an action + function to ...